package com.med.mapper;

import com.med.entity.AppointmentDO;
import com.med.entity.AppointmentOrderDO;
import com.med.entity.DoctorDO;
import com.med.entity.MedicineOrderDO;
import com.med.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface OrderFrontMapper {
    //查询该用户的全部预约订单信息
    List<AppointmentOrderDO> selectAllOrder(@Param("userId") Integer userId);

    //查询该用户的开药订单
    List<MedicineOrderDO> queryMedicineOrder(@Param("userId") Integer userId);

    //预约号预热 查询医生和该医生可以预约的时间段
    List<AppointmentDO> getAllAppointment();

    //查询医疗记录
    List<MedicineOrderDO> queryMedicine(@Param("orderVO") OrderVO orderVO);

    //医生信息
    DoctorDO doctorInfo(@Param("orderVO")OrderVO orderVO);

    //插入评论
    Integer insertComment(@Param("orderVO")OrderVO orderVO);

    //查看用户是否已经评论了
    Boolean isComment(@Param("orderVO") OrderVO orderVO);



}
